package com.itcam.enum_;

public class Season {
    // 属性
    private String seasonName; // 名字
    private String seasonDesc; // 描述

    // 利用构造器对属性进行赋值操作：
    // 构造器私有化，外界不能调用这个构造器，只能season内部自己调用
    public Season(String seasonName, String seasonDesc) {
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }

    // 提供枚举类的有限的、确定的对象
    public static final Season SPRING=new Season("春","万物复苏");
    public static final Season SUMMER=new Season("夏","烈日炎炎");
    public static final Season AUTUMN=new Season("秋","硕果累累");
    public static final Season WINTER=new Season("冬","寒风呼啸");

    public String getSeasonName() {
        return seasonName;
    }

    public String getSeasonDesc() {
        return seasonDesc;
    }

    @Override
    public String toString() {
        return "Season{" +
                "seasonName='" + seasonName + '\'' +
                ", seasonDesc='" + seasonDesc + '\'' +
                '}';
    }
}
